package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.DeviceTypeDao;
import com.neuedu.model.DeviceType;
import com.neuedu.service.DeviceTypeService;

@Service
public class DeviceTypeServiceImpl implements DeviceTypeService {

	// 依赖注入
	@Autowired
	private DeviceTypeDao DeviceTypeDao;
	
	public void setDeviceTypeDao(DeviceTypeDao DeviceTypeDao) {
		this.DeviceTypeDao = DeviceTypeDao;
	}
	
	@Override
	public int countDeviceType() {
		return DeviceTypeDao.countDeviceType();
	}

	@Override
	public List<DeviceType> findAll(Map<String, Object> map) {
		return DeviceTypeDao.findAll(map);
	}

	@Override
	public int addDeviceType(DeviceType u) {
		return DeviceTypeDao.addDeviceType(u);
	}

	@Override
	public int updateDeviceType(DeviceType u) {
		return DeviceTypeDao.updateDeviceType(u);
	}

	@Override
	public int deleteDeviceType(int id) {
		return DeviceTypeDao.deleteDeviceType(id);
	}

	@Override
	public List<DeviceType> findList() {
		// TODO Auto-generated method stub
		return DeviceTypeDao.findList();
	}

}
